//
//  RoomInfoLogic.h
//  QRMaster
//
//  Created by myApple on 15/12/22.
//  Copyright (c) 2015年 myApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RoomsModel.h"

typedef void(^roomDataBlock)(NSMutableArray * roomArray);
typedef void(^myResultRoomName)(NSString * roomName);
@interface RoomInfoLogic : NSObject

/**
 *  插入房间信息
 *
 *  @param model   房间模型
 *  @param floorId 楼层ID
 *  @param communityId 集群ID
 */
-(void)insertRoomInfo:(RoomsModel *)model
          withFloorId:(NSString *)floorId
      withCommunityId:(NSString *)communityId;


/**
 *  查询房间信息
 *
 *  @param floorId   楼层ID
 *  @param roomArray 查询出来的房间数据
 */
-(void)queryRoomInfo:(NSString *)floorId block:(roomDataBlock)roomArray;

/**
 *  查询房间名
 *
 *  @param roomId    房间ID
 *
 *  @param roomName  房间名
 */
-(void)queryRoomName:(NSString *)roomId block:(myResultRoomName)roomName;


/**
 *  删除房间
 *
 *  @param communityId 集群ID
 */
-(void)deleteRoomWithCommunityId:(NSString *)communityId;

@end
